#include<stdio.h>
#include<sys/types.h>
#include<unistd.h>
#include<sys/wait.h>
#include<stdlib.h>
const char* ps ="This is an Apple";
int main()
{
  pid_t id=fork();
  if(id==0)
  {
      ps = "This is a Banana";//改写
      printf("我是子进程，我认为：%s\n",ps);
      exit(0);//子进程退出
  }
  wait(0);
  printf("我是父进程，我认为：%s\n",ps);
  return 0;

}
